/*
 * @Author: ReinerLau lk850593913@gmail.com
 * @Date: 2022-09-22 14:20:20
 * @LastEditors: ReinerLau lk850593913@gmail.com
 * @LastEditTime: 2022-10-31 11:16:49
 * @FilePath: \robot\src\api\robot-mission-template.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request.js";

export function getList(data) {
  return request({
    url: "/robot-mission-template/v1/getList",
    method: "post",
    data: data,
  });
}

export function deleteMissionTemplate(id) {
  return request({
    url: "/robot-mission-template/v1/" + id,
    method: "delete",
  });
}

export function createMissionTemplate(data) {
  return request({
    url: "/robot-mission-template/v1/",
    method: "post",
    data: data,
  });
}

export function updateMissionTemplate(data) {
  return request({
    url: "/robot-mission-template/v1/",
    method: "put",
    data: data,
  });
}
